<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ZHOUYANG
 * Date: 13-3-30
 * Time: 下午2:37
 */
 include 'bootstrap.php';

//控制器名称
$file_name = basename(__FILE__,'.php');
$controller = $_input->get('m',$file_name);

//动作名称
$action = $_input->get('a','index');

if(!in_array($action,array('login'))){
    $user_info = Model::getInstance('user')->needLogin();

    $is_action = Model::getInstance('user')->isAction($controller);
}
Controller::getInstance($controller)->{$action}();